/* code.html */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    margin-left: 20px;
    margin-right: 20px;
}

h1 {
    color: #4CAF50;
}

h3 {
    margin-bottom: -15px;
}

.line-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
    justify-content: space-between;
}

.icon-image {
    height: 35px;
    width: auto;
    vertical-align: middle;
    cursor: pointer;
}

pre {
    position: relative;
    /* 为了让按钮定位到代码块内部 */
}

code {
    background: #ebebeb;
    color: #3b3b3b;
    font-family: Consolas;
    font-size: 14px;
    scrollbar-width: thin;
    border-radius: 10px;
    transition: background-color 0.5s,
        color 0.5s;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.copy-btn:hover {
    background-color: #45a049;
}

body.dark-mode {
    background-color: #333;
    color: #ffffffd6;
}

body.dark-mode code {
    background: #1A1B26;
    color: #ffffffd6;
}